zoom scrolling: Improve the previous fix
authorMatthias Clasen <mclasen@redhat.com>
Mon, 23 Feb 2015 12:28:40 +0000 (07:28 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 23 Feb 2015 12:28:40 +0000 (07:28 -0500)
commitc060d93e3dc8abea39b919ac61434219b4318f25
treef00646102391443420411e0706fd19e2069c21b8
parent8726c6d5d239a342f0267d1c2bf0c90fb051d7fb
zoom scrolling: Improve the previous fix

As Sebastian pointed out, just resetting the initial slider
position was an incomplete fix, because it does not cause the
delta to be recomputed, which is important in this scenario,
because you've likely travelled some distance over the slider
before the long press kicks in.
Instead, explicitly record both the slider position and the
delta.
gtk/gtkrange.c